import http from '@/utils/request'

// 获取学生列表

export let getStuListApi = (params) => http.get('/students/getstulist', { params })

// 添加学生信息

export let addStuApi = data => http.post('/students/addstu', data)

// 删除学员信息

export let delStuApi = sId => http.get('/students/delstu?sId=' + sId)

// 编辑学员信息

export let editStuApi = data => http.post('/students/updatestu', data)

// 搜索学员信息

export let searchStuApi = (params) => http.get('/students/searchstu', { params })

// 上传学员头像

export let uploadStuAvatarApi = data =>http.post("/students/uploadStuAvatar", data)
